package visual.CrearPartida;

import java.awt.*;

import javax.swing.*;

public class Botones extends JPanel
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	JPanel panel;
	public JButton b1;
	public JButton b2;
	
	public Botones(String s1, String s2)
	{
		panel = new JPanel();
		b1 = new JButton(s1);
		b2 = new JButton(s2);
		
		panel.setLayout(new GridLayout(1, 2));
		panel.add(b1);
		panel.add(b2);
		
		this.setLayout(new BorderLayout());
		this.add(panel, "South");
	}

	public static void main (String []args)
	{
		JFrame f = new JFrame();
		f.setLayout(new BorderLayout());
		f.add(new Botones("Empezar", "Volver"), "Center");
		f.pack();
		f.setVisible(true);
	}
}
